<?php /* Smarty version 2.6.26, created on 2013-12-13 16:39:50
         compiled from tenders/add.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'geturl', 'tenders/add.html', 3, false),array('modifier', 'escape', 'tenders/add.html', 15, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'header.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<h1>Добавление тендера</h1>
<form method="post" action="<?php echo smarty_function_geturl(array('action' => 'add'), $this);?>
" id="registration-form">

    <fieldset>
        <legend>Добавление тендера</legend>
        <div class="error"<?php if (! $this->_tpl_vars['fp']->hasError()): ?> style="display: none"<?php endif; ?>>
            Одно или несколько полей заполнены неверно. Проверьте, пожалуйста, 
            поля с ошибками и отправьте форму ещё раз.
        </div>

        <div class="row" id="form_username_container">
            <label for="form_name">Название:</label>
            <input type="text" id="form_name"
                   name="name" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['fp']->name)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
            <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'lib/error.tpl', 'smarty_include_vars' => array('error' => $this->_tpl_vars['fp']->getError('name'))));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        </div>
        
        <div class="row" id="form_first_name_container">
            <label for="form_about">Описание:</label>
            <textarea id="form_about" name="about" ><?php echo ((is_array($_tmp=$this->_tpl_vars['fp']->about)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</textarea>
            <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'lib/error.tpl', 'smarty_include_vars' => array('error' => $this->_tpl_vars['fp']->getError('about'))));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        </div>

        <div class="row" id="form_password_again_container">
            <label for="form_project">Выберите проект:</label>
            <select name="projects" >
            <option value='0' > Выбрать проект</option>
            <?php $_from = $this->_tpl_vars['projects']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['project']):
?>
            <option value='<?php echo $this->_tpl_vars['project']->getId(); ?>
' > <?php echo ((is_array($_tmp=$this->_tpl_vars['project']->name)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</option>
            <?php endforeach; endif; unset($_from); ?>
             </select>
            <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'lib/error.tpl', 'smarty_include_vars' => array('error' => $this->_tpl_vars['fp']->getError('project'))));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        </div>
        
        <div class="row" id="form_password_again_container">
            <label for="form_email">Выберите категории:</label>
            <select name="cats">
            <option value='0' > Выбрать категорию</option>
            <?php $_from = $this->_tpl_vars['cats']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['cat']):
?>
            <option value='<?php echo $this->_tpl_vars['cat']->getId(); ?>
' > <?php echo ((is_array($_tmp=$this->_tpl_vars['cat']->name)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</option>
            <?php endforeach; endif; unset($_from); ?>
            </select>
            <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'lib/error.tpl', 'smarty_include_vars' => array('error' => $this->_tpl_vars['fp']->getError('category'))));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        </div>
        
        <div class="row" id="form_email_container">
            <label for="form_end_date">Дата окончания:</label>
            <input type="text" id="form_end_date"
                   name="end_date" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['fp']->end_date)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
            <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'lib/error.tpl', 'smarty_include_vars' => array('error' => $this->_tpl_vars['fp']->getError('end_date'))));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        </div>
        
        <div class="row" id="form_manager_container">
            <label for="form_manager">Отвественный:</label>
            <input type="text" id="form_manager"
                   name="manager" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['fp']->manager)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" />
            <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'lib/error.tpl', 'smarty_include_vars' => array('error' => $this->_tpl_vars['fp']->getError('manager'))));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
        </div>
        <div class="qq-upload-button" id="upload" style="position: relative; overflow: hidden; direction: ltr;">Загрузить файл
            <input type="file" name="file" style="position: absolute; right: 0px; top: 0px; font-family: Arial; font-size: 118px; margin: 0px; padding: 0px; cursor: pointer; opacity: 0;">
        </div>
          <span id="status" ></span>
        
                <ul id="files" class="qq-upload-list">

               </ul>
        
   
        <div class="submit">
            <input type="submit" value="Добавить" />
        </div>
    </fieldset>
</form>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'footer.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>